package com.foreveross.taskservice.taskcache.redis;

public class TaskCacheContext {
	/**
	 * key命名规则  
	 * 表空间:[其他标示属性]:数据类型
	 * eg:	QUEUE:WAIT:20140202:01:SORTEDSET  
	 */
	
	
	/**
	 * 各种队列类型的标识
	 */
	public static final String WAIT_QUEUE="WAIT";
	public static final String DOING_QUEUE="DOING";
	public static final String FINISH_QUEUE="FINISH";
	public static final String PAUSE_QUEUE="PAUSE";
	
	
	/**
	 * 命名空间分隔符
	 */
	public static final String SPACE_DELIMITER=":";
	
	public static final String SPACE_QUEUE="QUEUE";
	public static final String SPACE_TASKDETAIL="TASKDETAIL";
	
	public static final String SPACE_CONDITION="CONDITION";
	public static final String SPACE_CONDITION_CHANNEL="CHANNEL";
	public static final String SPACE_CONDITION_FROM="FROM";
	public static final String SPACE_CONDITION_TO="TO";
	public static final String SPACE_CONDITION_FLIGHTDATE="FLIGHTDATE";
	public static final String SPACE_CONDITION_RETURNDATE="RETURNDATE";
	
	public static final String SPACE_COUNTINFO="COUNTINFO";//统计数量信息命名空间
	public static final String SPACE_CRAWLCOUNT="CRAWLCOUNT";
	public static final String SPACE_BYTELENTH="BYTELENTH";
	
	
	/**
	 * 具体数据类型标识 
	 */
	public static final String SET="SET";
	public static final String HASH="HASH";
	public static final String SORTED_SET="SORTEDSET";
	public static final String LIST="LIST";
	public static final String KEY="KEY";
	
	/**
	 * 锁标志
	 */
	public static final String LOCK="LOCK";
	
	/**
	 * 时间极值
	 */
	public static final int FIRST_24HOUR=0;
	public static final int LAST_24HOUR=23;
	public static final int FIRST_MINUTE=0;
	public static final int LAST_MINUTE=59;
}
